package cn.com.dcsgo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 商品评论
 */
@TableName(value = "prod_comm")
@Data
public class ProdComm {
    /**
     * 评论ID
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "评论ID")
    private Long prodCommId;

    /**
     * 商品ID
     */
    @Schema(description = "商品ID")
    private Long prodId;

    /**
     * 商品的名字
     */
    @Schema(description = "商品的名字")
    private String prodName;

    /**
     * 订单项ID
     */
    @Schema(description = "订单项ID")
    private Long orderItemId;

    /**
     * 评论用户ID
     */
    @Schema(description = "评论用户ID")
    private String openId;

    /**
     * 评论内容
     */
    @Schema(description = "评论内容")
    private String content;

    /**
     * 掌柜回复
     */
    @Schema(description = "掌柜回复")
    private String replyContent;

    /**
     * 记录时间
     */
    @Schema(description = "记录时间")
    private Date createTime;

    /**
     * 回复时间
     */
    @Schema(description = "回复时间")
    private Date replyTime;

    /**
     * 是否回复 0:未回复  1:已回复
     */
    @Schema(description = "是否回复 0:未回复  1:已回复")
    private Integer replySts;

    /**
     * IP来源
     */
    @Schema(description = "IP来源")
    private String postip;

    /**
     * 得分，0-5分
     */
    @Schema(description = "得分，0-5分")
    private Integer score;

    /**
     * 有用的计数
     */
    @Schema(description = "有用的计数")
    private Integer usefulCounts;

    /**
     * 晒图的json字符串
     */
    @Schema(description = "晒图的json字符串")
    private String pics;

    /**
     * 是否匿名(1:是  0:否)
     */
    @Schema(description = "是否匿名(1:是  0:否)")
    private Integer isAnonymous;

    /**
     * 评论状态：1正常，0待审核，-1审核不通过
     */
    @Schema(description = "论状态：1正常，0待审核，-1审核不通过")
    private Integer status;

    /**
     * 评价(0好评 1中评 2差评)
     */
    @Schema(description = "评价(0好评 1中评 2差评)")
    private Integer evaluate;

    /**
     * 店铺ID
     */
    @Schema(description = "店铺ID")
    private Long shopId;
}